package com.example.gjk.dao;

import com.example.gjk.entity.Company;
import com.example.gjk.entity.CompanyInventoryStatus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface CompanyMapper {
    List<Company> selCompany(String a);
    void edit(@Param("company") Company company,@Param("companyName") String companyName);

    Company selEdit(String companyName);

    void delete(String companyName);

    void add(Company company);

    ArrayList<CompanyInventoryStatus> goodSel(String company);

    List<CompanyInventoryStatus> selgood(@Param("companyName")String companyName,@Param("goodClass") String goodClass);

    void deletegood(@Param("companyName") String companyName,@Param("goodName") String goodName);

    CompanyInventoryStatus goodSelSingle(String goodName);

    void goodEditSingle(@Param("good")CompanyInventoryStatus good,@Param("name") String name);

    void goodAddSingle(CompanyInventoryStatus good);
}
